package com.cyt.gen.model.po;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 表单自定义-工具栏信息实体类
 *
 * @author rong yuan
 * @date 2019-4-16 8:44:04
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_gen_form_tool")
public class FormTool implements Serializable {

    public FormTool(String tableName) {
        this.tableName = tableName;
    }

    /**
     * 主键ID
     */
    @Id
    private String id;

    /**
     * 数据库表名称
     */
    @Column(name = "table_name")
    private String tableName;

    /**
     * 添加方法
     */
    @Column(name = "add_function")
    private String addFunction;

    /**
     * 编辑方法
     */
    @Column(name = "edit_function")
    private String editFunction;

    /**
     * 删除方法
     */
    @Column(name = "delete_function")
    private String deleteFunction;
}